﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TSTree
{
    public static class Constants
    {
        public const int RTDataNodeDimension = 2;
        // for comparing mbrs
        public const int OVERLAP = 0;
        public const int INSIDE = 1;
        public const int S_NONE = 2;
        // for buffering
        public const int SIZEOF_Boolean = 1;
        public const int SIZEOF_SHORT = 2;
        //public const int SIZEOF_CHAR = 1;//2
        public const int SIZEOF_BYTE = 1;
        public const int SIZEOF_FLOAT = 4;
        public const int SIZEOF_INT = 4;

        public static int BLOCKLENGTH = 256;
        public static int CACHESIZE = 128;

        public const float MAXREAL = (float)9.99e20;

        // sorting criteria
        public const int SORT_LOWER_MBR = 0; //for mbrs
        public const int SORT_UPPER_MBR = 1; //for mbrs
        public const int SORT_CENTER_MBR = 2; //for mbrs
        public const int SORT_MINDIST = 3; //for branchlists
        // for the insert algorithm
        public const int SPLIT = 0;
        public const int REINSERT = 1;
        public const int NONE = 2;

        public const int CAPACITY = 4;
    }
}
